<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
<title>KISSY Grids Demo</title>
<link rel="stylesheet" href="../../../assets/dpl/base.css">
<style>
    .show-grid {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .show-grid .span1,
    .show-grid .span2,
    .show-grid .span4,
    .show-grid .span6,
    .show-grid .span8,
    .show-grid .span16,
    .show-grid .span12,
    .show-grid .span24 {
        background-color: #EEE;
        text-align: center;
        border-radius: 3px;
        min-height: 30px;
        line-height: 30px;
    }

    .show-grid .show-grid .span6,
    .show-grid .show-grid .span12 {
        background-color: #CCC;
    }

    code, pre {
        padding: 8.5px;
        margin: 0 0 9px;
        font-size: 11.100000000000001px;
        line-height: 18px;
        background-color: whiteSmoke;
        border: 1px solid #CCC;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }

    code {
        padding: 2px 4px;
        color: #D14;
        background-color: #F7F7F9;
        border: 1px solid #E1E1E8;
    }
</style>
</head>
<body>
<div class="container-fluid">

    <div class="page-header">
        <h1>
            自适应栅格
            <small>基于百分比的列宽</small>
        </h1>
    </div>

    <h2>自适应列</h2>
    <div class="row-fluid show-grid">
        <div class="span2 span-first">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
        <div class="span2">2</div>
    </div>
    <div class="row-fluid show-grid">
        <div class="span8 span-first">8</div>
        <div class="span8">8</div>
        <div class="span8">8</div>
    </div>
    <div class="row-fluid show-grid">
        <div class="span8 span-first">8</div>
        <div class="span16">16</div>
    </div>
    <div class="row-fluid show-grid">
        <div class="span12 span-first">12</div>
        <div class="span12">12</div>
    </div>
    <div class="row-fluid show-grid">
        <div class="span24 span-first">24</div>
    </div>

    <div class="row">
        <div class="span8">
            <h3>自适应的行</h3>
            <p>
                通过简单的修改
                <code>.row</code>
                为
                <code>.row-fluid</code>
                可以定义自适应行。 而列定义完全保持和原来相同，简单快速的在定宽和自适应间切换。
            </p>
        </div>
        <!-- /.span -->
        <div class="span8">
            <h3>代码</h3>
			<pre class="prettyprint linenums">&lt;div class="row-fluid"&gt;
  &lt;div class="span8"&gt;...&lt;/div&gt;
  &lt;div class="span16"&gt;...&lt;/div&gt;
&lt;/div&gt;
</pre>
        </div>
        <!-- /.span -->
    </div>
    <!-- /.row -->

    <h2>自适应嵌套</h2>
    <div class="row">
        <div class="span12">
            <p>在自适应列的嵌套中，子列的数值之和不一定等于父列，而是按照百分比计算的宽度。</p>
            <div class="row-fluid show-grid">
                <div class="span24 span-first">
                    Fluid 24
                    <div class="row-fluid show-grid">
                        <div class="span6 span-first">Fluid 6</div>
                        <div class="span12">Fluid 12</div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.span -->
        <div class="span12">
			<pre class="prettyprint linenums">&lt;div class="row-fluid"&gt;
  &lt;div class="span24"&gt;
    Level 1 of column
    &lt;div class="row-fluid"&gt;
      &lt;div class="span6"&gt;Level 2&lt;/div&gt;
      &lt;div class="span12"&gt;Level 2&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</pre>
        </div>
        <!-- /.span -->
    </div>
    <!-- /.row -->


</div>
</body>
</html>